﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApp.Common.Mail
{
    /// <summary>
    /// SMTP配置
    /// </summary>
    public class MailServer
    {
        private string _smtp;
        /// <summary>
        /// 邮件服务器地址
        /// </summary>
        public string Smtp
        {
            get { return _smtp; }
            set { _smtp = value; }
        }

        private int _port;
        /// <summary>
        /// 端口
        /// </summary>
        public int Port
        {
            get { return _port; }
            set { _port = value; }
        }

        private string _mailfrom;
        /// <summary>
        /// 发件人
        /// </summary>
        public string Mailfrom
        {
            get { return _mailfrom; }
            set { _mailfrom = value; }
        }

        private string _displayname;
        /// <summary>
        /// 发件人显示名
        /// </summary>
        public string Displayname
        {
            get { return _displayname; }
            set { _displayname = value; }
        }

        private string _username;
        /// <summary>
        /// 发件人（身份验证）
        /// </summary>
        public string Username
        {
            get { return _username; }
            set { _username = value; }
        }

        private string _password;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }
    }
}
